package com.enba.mallapi.module.auth.controller.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 角色表
 *
 * @author 恩爸编程
 * @since 2025-02-28
 */
@Data
@ApiModel(value = "RoleAddUpdateReq", description = "角色表新增或更新")
public class RoleAddUpdateReq implements Serializable {

  private static final long serialVersionUID = 1L;

  private Long id;

  @ApiModelProperty("角色名称")
  @NotBlank(message = "角色名称不能为空")
  private String roleName;

  @ApiModelProperty("角色权限字符")
  @NotBlank(message = "角色权限字符不能为空")
  private String roleKey;

  @ApiModelProperty("备注")
  private String remark;

  @ApiModelProperty("状态（0：可用 1：禁用）")
  @NotNull(message = "状态不能为空")
  private Integer status;
}
